import request from '@/utils/request'

// 查询库存消耗列表 (分页)
export function selectPageDrugInventoryOccupy(query) {
  return request({
    url: '/drug/drugInventoryOccupy/selectPage',
    method: 'get',
    params: query
  })
}

// 查询库存消耗列表 (不分页)
export function listDrugInventoryOccupy(query) {
  return request({
    url: '/drug/drugInventoryOccupy/list',
    method: 'get',
    params: query
  })
}

// 查询库存消耗详细
export function getDrugInventoryOccupy(drugInventoryConsumptionId) {
  return request({
    url: '/drug/drugInventoryOccupy/' + drugInventoryConsumptionId,
    method: 'get'
  })
}

// 新增库存消耗
export function addDrugInventoryOccupy(data) {
  return request({
    url: '/drug/drugInventoryOccupy',
    method: 'post',
    data: data
  })
}

// 修改库存消耗
export function updateDrugInventoryOccupy(data) {
  return request({
    url: '/drug/drugInventoryOccupy',
    method: 'put',
    data: data
  })
}

// 删除库存消耗
export function delDrugInventoryOccupy(drugInventoryConsumptionId) {
  return request({
    url: '/drug/drugInventoryOccupy/' + drugInventoryConsumptionId,
    method: 'delete'
  })
}
